package thinkingInJava.generics;

//: generics/SimplerPets.java
import java.util.*;
import thinkingInJava.typeinfo.Pet;

class Person{}

public class SimplerPets {
public static void main(String[] args) {
  Map<Person, List<? extends Pet>> petPeople = New.map();
  // 如果不用上面那个省写类,要写成这样:
  //Map<Person, List<? extends Pet>> petPeople = new HashMap<Person, List<? extends Pet>>();
  // Rest of the code is the same...
}
} ///:~
